#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"

void test1()
{
	LTNode* plist = LTInit();
	LTNode* head = plist;
	LTPushBack(head, 1);
	LTPushBack(head, 2);
	LTPushBack(head, 3);
	LTPushBack(head, 4);
	LTprint(head);
	LTPushFront(head, 2);
	LTPushFront(head, 3);
	LTPushFront(head, 4);
	LTprint(head);
	LTpopBack(head);
	LTprint(head);
	LTpopFront(head);
	LTprint(head);
	LTNode* find = LTFind(head,1);
	printf("%p\n", find);
	LTInsert(find,1);
	LTInsert(find,1);
	LTprint(head);
	LTErase(find);
	LTprint(head);
	LTDestroy(head);
	head = NULL;
}

int main()
{
	test1();
	return 0;
}